//
//  GraphView.h
//  GraphingCalculator
//
//  Created by Willem van Willigen on 25/02/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AxesDrawer.h"

@class GraphView;

@protocol GraphDelegate
- (float)graphValueForGraphView:(GraphView *)requestor xValue:(float)aValue;
@end
	
@interface GraphView : UIView {
	id <GraphDelegate> delegate;
	CGFloat scale;
	CGPoint midPoint;
}

@property (assign) id <GraphDelegate> delegate;
@property CGFloat scale;
@property CGPoint midPoint;

- (id)initWithFrame:(CGRect)frame pinchingAllowed:(BOOL)pinching panningAllowed:(BOOL)panning;

+ (BOOL) scaleIsValid:(CGFloat)aScale;

- (CGPoint) defaultMidPoint;


@end
